package com.service.dao.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("hm_journal_account")
public class JournalAccount implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 会员id
     */
    private Integer memberId;

    /**
     * 会员账户id
     */
    private Integer storeId;

    /**
     *  流水操作数量
     */
    private BigDecimal jaNum;

    /**
     * 流水类型
     * @
     */
    private Integer jaType;

    /**
     * 账户余额
     */
    private BigDecimal storeNum;

    /**
     * 账户冻结余额
     */
    private BigDecimal storeFrostNum;

    /**
     * 托管手续费 可为0
     */
    private BigDecimal custodyFee;

    /**
     * 转账时，OTC交易时需要写入此id
     */
    private Integer jaId;

    /**
     * 订单id
     */
    private Integer orderId;

    /**
     * 订单详情id，在otc交易时需要写入此字段
     */
    private Integer orderDetailId;

    private Integer coinsId;

    private String coinsName;
    /**
     * 交易备注
     */
    private String jaRemark;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private static final long serialVersionUID = 1L;
}